Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make tests os independent #210

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nward
Copy link
Collaborator

@nward nward commented Aug 18, 2023

This makes all tests os-independent, and removes RedHat tests contexts which forced all OSes to behave as though they were RedHat during testing.

The general structure I have followed, is to put a case/when/end block at the top of each context, do any os-specific test there, and then have os-independent tests after that block.

Examples of os-dependent things are usernames, group names, paths, and packages.

In the case of the tests for the freeradius class, this is quite a large block and takes up the first 1/3 of the file, but for the other tests it is clearer.

Note that this will fail tests until #209 is merged and this is rebased, so I am leaving this draft until then.

@nward nward force-pushed the remove_redhat_params_class branch from ef7a4a4 to 1403a55 Compare August 18, 2023 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant